Skip to content

Instantly share code, notes, and snippets.

@yutopp
Created February 1, 2012 16:06
Show Gist options
  • Save yutopp/1717735 to your computer and use it in GitHub Desktop.
Save yutopp/1717735 to your computer and use it in GitHub Desktop.
class ho
{
const ho();
number() => 5;
}
class hoge {
static homu() => _i.number();
static final _i = const ho();
}
void main()
{
print( hoge.homu() );
for( final v in [ 1, 2, 3, 4, 5, 6 ] )
print( v );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment