Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Created February 14, 2012 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-singer/1823933 to your computer and use it in GitHub Desktop.
Save adam-singer/1823933 to your computer and use it in GitHub Desktop.
minfrog error: field cannot override anything but property
MINFROG=~/dart_bleeding/dart/frog/minfrog
$MINFROG --compile-only --out=Test1.dart.js Test1.dart
$MINFROG --compile-only --out=Test2.dart.js Test2.dart
#import('dart:html');
class A {
List _l;
}
class B extends A {
List _l;
}
main() {
new B();
print('Hello, Dart!');
}
#import('dart:html');
class A {
List _l;
}
class B extends A {
List _l;
B() { _l = new List(); }
}
main() {
new B();
print('Hello, Dart!');
}
@adam-singer
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment