Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 199ddd44d6
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.286 kb
type A<T> = {
foo(_ : T) -> Number
bar(_ : Number) -> T
}
class Test<T> {
var tval : T
method foo(x : T) -> Number {
2
}
method bar(y : Number) -> T {
tval
}
}
// Instantiated with Dynamic
def t : A<String> = Test.new
print(t.foo("test"))
Jump to Line
Something went wrong with that request. Please try again.