Created
June 21, 2017 09:03
-
-
Save eFrane/7f3a7c2052af40af6b384317866aae57 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
class AClass<T> { | |
public string hello() { | |
return "hello"; | |
} | |
} | |
class BClass { | |
} | |
public static int main(string[] args) { | |
Type tp = typeof(BClass); | |
// var tp = typeof(BClass).class_ref(); | |
// var tp = typeof(BClass); | |
var i = new AClass<tp>(); | |
stdout.puts(i.hello()); | |
return 0; | |
} | |
//> valac: The type name `tp' could not be found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment