Created
June 9, 2014 16:40
-
-
Save matanlurey/562a32d4ab85878639bf to your computer and use it in GitHub Desktop.
Bug: Static Methods in 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
void main() { | |
// No error: | |
User.doSomething(); | |
// Error | |
User | |
..doSomething() | |
..doSomething(); | |
} | |
class User { | |
static void doSomething() { | |
print('I did something!'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment