fixing broken tests (after adding special handling for CharSequence) for class reading

This commit is contained in:
Alex Tkachman
2012-01-26 08:48:24 +02:00
parent 9dd27cfd1b
commit 020fdfddb9
14 changed files with 16 additions and 16 deletions
@@ -1,3 +1,3 @@
package test
class Clock<A> where A : java.lang.Number, A : java.lang.CharSequence
class Clock<A> where A : java.lang.Number, A : java.io.Serializable
@@ -1,3 +1,3 @@
package test
class Clock<A : java.lang.CharSequence>
class Clock<A : java.io.Serializable>
@@ -1,3 +1,3 @@
package test
class Clock<A> where A : java.lang.CharSequence, A : java.lang.Number
class Clock<A> where A : java.io.Serializable, A : java.lang.Number
@@ -1,3 +1,3 @@
package test
fun <A> tres() where A : java.lang.Number, A : java.lang.CharSequence = 1
fun <A> tres() where A : java.lang.Number, A : java.io.Serializable = 1
@@ -1,3 +1,3 @@
package test
fun <A : java.lang.CharSequence> dos() = 1
fun <A : java.io.Serializable> dos() = 1
@@ -1,3 +1,3 @@
package test
fun <A> cuatro() where A : java.lang.CharSequence, A : java.lang.Number = 1
fun <A> cuatro() where A : java.io.Serializable, A : java.lang.Number = 1
@@ -1,3 +1,3 @@
package test
fun fff(a: java.lang.CharSequence?) = 1
fun fff(a: java.lang.Integer?) = 1
@@ -1,3 +1,3 @@
package test
fun fff(a: java.lang.CharSequence) = 1
fun fff(a: java.lang.Integer) = 1
@@ -1,3 +0,0 @@
package test
fun varargCharSequence(a: Int, vararg b: java.lang.CharSequence) = 1
@@ -0,0 +1,3 @@
package test
fun varargCharSequence(a: Int, vararg b: java.lang.Integer) = 1
@@ -1,3 +1,3 @@
package test
fun ff(): java.lang.CharSequence = throw Exception()
fun ff(): java.lang.Integer = throw Exception()
@@ -1,3 +1,3 @@
package test
fun ff(): java.lang.CharSequence? = null
fun ff(): java.lang.Integer? = null
@@ -1,3 +0,0 @@
package test
fun nothing(): Array<java.lang.CharSequence> = throw Exception()
@@ -0,0 +1,3 @@
package test
fun nothing(): Array<java.lang.Integer> = throw Exception()