New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart2js: VariableMirror.type always returns: TypeMirror on 'dynamic' #12022
Comments
Added Area-Dart2JS, Triaged labels. |
Set owner to @peter-ahe-google. |
Marked this as blocking #6490. |
Added this to the M7 milestone. |
Removed Priority-Unassigned label. |
This comment was originally written by ross.dart...@gmail.com Hi Peter, In SDK 1.1.0.dev_05_0 this appears to now work (woot!); can you confirm that it is now fixed or are there known limitations still? thanks |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
Mirrors is no longer supported in Dart2JS. |
This issue was originally filed by ross.dart....@gmail.com
r25462
Windows 7x64
Consider the following program:
/////////////////////////////////////////////////
import 'dart:mirrors';
class A {
int i = 42;
}
main() {
ClassMirror cm = reflectClass(A);
VariableMirror vm = cm.variables[const Symbol('i')];
print('${vm.type}');
}
/////////////////////////////////////////////////
In the vm this prints:
ClassMirror on 'int'
In dart2js this prints:
TypeMirror on 'dynamic'
/////////////////////////////////////////////////
thanks,
The text was updated successfully, but these errors were encountered: