parent
49686bc4db
commit
fd50a6c9e1
|
@ -971,7 +971,7 @@ syntax supports generics.
|
|||
val1: S;
|
||||
val2: T;
|
||||
|
||||
method1<U extends SomeInterface2>(val: U): S { }
|
||||
method1<U extends SomeInterface2>(val: U): S
|
||||
}
|
||||
|
||||
// Generic function
|
||||
|
@ -984,7 +984,7 @@ syntax supports generics.
|
|||
interface InterfaceC<T = SomeInterface3> { }
|
||||
|
||||
// Generic type alias
|
||||
type MyType<T extends SomeInterface4> = array<T>
|
||||
type MyType<T extends SomeInterface4> = Array<T>
|
||||
|
||||
|
||||
Scala
|
||||
|
|
Loading…
Reference in New Issue