Changed the way the constraints are written in tests
SUBTYPE T Int -> T <: Int
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
||||
VARIABLES T P E
|
||||
|
||||
SUBTYPE T Producer<P>
|
||||
SUBTYPE P Producer<E>
|
||||
SUBTYPE E Producer<P>
|
||||
T <: Producer<P>
|
||||
P <: Producer<E>
|
||||
E <: Producer<P>
|
||||
|
||||
type parameter bounds:
|
||||
T <: Producer<P>*, <: Producer<Producer<E>>*, <: Producer<Producer<Producer<P>>>*
|
||||
|
||||
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
||||
VARIABLES T P E
|
||||
|
||||
SUBTYPE T Producer<P>
|
||||
SUBTYPE P Producer<E>
|
||||
SUBTYPE E Producer<P>
|
||||
T <: Producer<P>
|
||||
P <: Producer<E>
|
||||
E <: Producer<P>
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
VARIABLES T P
|
||||
|
||||
EQUAL T My<P>
|
||||
EQUAL P Two<T,P>
|
||||
T := My<P>
|
||||
P := Two<T,P>
|
||||
|
||||
type parameter bounds:
|
||||
T := My<P>*
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
VARIABLES T P
|
||||
|
||||
EQUAL T My<P>
|
||||
EQUAL P Two<T,P>
|
||||
T := My<P>
|
||||
P := Two<T,P>
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
VARIABLES T
|
||||
|
||||
EQUAL T Int
|
||||
EQUAL T My<T>
|
||||
T := Int
|
||||
T := My<T>
|
||||
|
||||
type parameter bounds:
|
||||
T := Int, := My<T>*, := My<Int>
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
VARIABLES T
|
||||
|
||||
EQUAL T Int
|
||||
EQUAL T My<T>
|
||||
T := Int
|
||||
T := My<T>
|
||||
|
||||
Reference in New Issue
Block a user