| Index: frog/leg/ssa/codegen.dart
|
| ===================================================================
|
| --- frog/leg/ssa/codegen.dart (revision 5116)
|
| +++ frog/leg/ssa/codegen.dart (working copy)
|
| @@ -987,7 +987,8 @@
|
| use(input, JSPrecedence.MEMBER_PRECEDENCE);
|
| buffer.add('.');
|
| buffer.add(compiler.namer.operatorIs(node.typeExpression));
|
| - if (element.isNative() || isSupertypeOfNativeClass(element)) {
|
| + if (element.isClass() && (element.dynamic.isNative()
|
| + || isSupertypeOfNativeClass(element))) {
|
| buffer.add(' || ');
|
| beginExpression(JSPrecedence.LOGICAL_AND_PRECEDENCE);
|
| // First check if the object is not a Dart object. If the
|
|
|