Created
January 13, 2014 21:25
-
-
Save seaneagan/8408456 to your computer and use it in GitHub Desktop.
test DeclarationMirror.declarations ordering
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:mirrors'; | |
main() { | |
print(reflectClass(Foo).declarations.keys.map(MirrorSystem.getName).join(' ')); | |
} | |
class Foo { | |
static var sv1 = 1; | |
static var sv2 = 2; | |
var iv1 = 1; | |
var iv2 = 2; | |
static sm() {} | |
im() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment