Changed the way the constraints are written in tests
SUBTYPE T Int -> T <: Int
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
VARIABLES T P E
|
||||
|
||||
SUBTYPE Int T
|
||||
SUBTYPE P String
|
||||
SUBTYPE E Fun<T, P>
|
||||
Int <: T
|
||||
P <: String
|
||||
E <: Fun<T, P>
|
||||
|
||||
type parameter bounds:
|
||||
T >: Int
|
||||
P <: String
|
||||
E <: Fun<T, [ERROR : No type element]>*, <: Fun<Int, [ERROR : No type element]>
|
||||
E <: Fun<T, P>*, <: Fun<Int, P>*, <: Fun<Int, String>, <: Fun<T, String>*
|
||||
|
||||
status:
|
||||
-hasCannotCaptureTypesError: false
|
||||
@@ -23,4 +23,4 @@ status:
|
||||
result:
|
||||
T=Int
|
||||
P=String
|
||||
E=Fun<Int, [ERROR : No type element]>
|
||||
E=Fun<Int, String>
|
||||
Reference in New Issue
Block a user