Created
March 23, 2022 03:37
-
-
Save QuantumGhost/6f642d503bf928cfe541ef422c3f477a to your computer and use it in GitHub Desktop.
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
// Type your code here, or load an example. | |
class User {} | |
bool isUserList(Object value) { | |
return value is List<User>; | |
} | |
int main(List<String> args) { | |
print(isUserList(<User>[])); | |
print(isUserList(<bool>[])); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment