Skip to content

Instantly share code, notes, and snippets.

@eFrane
Created June 21, 2017 09:03
Show Gist options
  • Save eFrane/7f3a7c2052af40af6b384317866aae57 to your computer and use it in GitHub Desktop.
Save eFrane/7f3a7c2052af40af6b384317866aae57 to your computer and use it in GitHub Desktop.
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