Created
February 14, 2012 05:38
-
-
Save adam-singer/1823933 to your computer and use it in GitHub Desktop.
minfrog error: field cannot override anything but property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MINFROG=~/dart_bleeding/dart/frog/minfrog | |
$MINFROG --compile-only --out=Test1.dart.js Test1.dart | |
$MINFROG --compile-only --out=Test2.dart.js Test2.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import('dart:html'); | |
class A { | |
List _l; | |
} | |
class B extends A { | |
List _l; | |
} | |
main() { | |
new B(); | |
print('Hello, Dart!'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import('dart:html'); | |
class A { | |
List _l; | |
} | |
class B extends A { | |
List _l; | |
B() { _l = new List(); } | |
} | |
main() { | |
new B(); | |
print('Hello, Dart!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One Test1 compiles without any errors. Test2 fails with the following error message:
Test2.dart:8:3: error: field cannot override anything but property List _l; ^^^^^^^^ Test2.dart:4:3: error: field cannot override anything but property List _l; ^^^^^^^^ /Users/adam/dart_bleeding/dart/client/html/release/htmlimpl.dart:18155:12: warning: type "dom.FileReader" is not assignable to "html.FileReader" return new dom.FileReader(); ^^^^^^^^^^^^^^^^^^^^ compilation failed with 1 errors