| Index: dart/frog/leg/ssa/codegen.dart
|
| ===================================================================
|
| --- dart/frog/leg/ssa/codegen.dart (revision 4223)
|
| +++ dart/frog/leg/ssa/codegen.dart (working copy)
|
| @@ -823,6 +823,7 @@
|
| ClassElement element = node.typeExpression;
|
| LibraryElement coreLibrary = compiler.coreLibrary;
|
| HInstruction input = node.expression;
|
| + buffer.add('(');
|
| if (element == coreLibrary.find(const SourceString('Object'))) {
|
| // TODO(ahe): This probably belongs in the constant folder.
|
| buffer.add('true');
|
| @@ -835,6 +836,8 @@
|
| } else if (element == coreLibrary.find(const SourceString('bool'))) {
|
| checkBool(input, '===');
|
| } else if (element == coreLibrary.find(const SourceString('int'))) {
|
| + checkNum(input, '===');
|
| + buffer.add(' && ');
|
| checkInt(input, '===');
|
| } else {
|
| if (element == coreLibrary.find(const SourceString('List'))) {
|
| @@ -847,6 +850,7 @@
|
| buffer.add(compiler.namer.operatorIs(node.typeExpression));
|
| buffer.add(')');
|
| }
|
| + buffer.add(')');
|
| }
|
| }
|
|
|
|
|