refactoring: fixes after review

rename, removed unnecessary methods, improved test
This commit is contained in:
Svetlana Isakova
2013-08-28 14:01:31 +04:00
parent ae086d883f
commit a493125a75
3 changed files with 13 additions and 37 deletions
@@ -61,6 +61,10 @@ fun <T> upperBound(t: T, <!UNUSED_PARAMETER!>l<!>: Contr<T>) = t
fun testUpperBound(contrS: Contr<String>, contrB: Contr<Byte>, contrN: Contr<Number>) {
<!TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS!>upperBound<!>(1, contrS)
upperBound(1, contrN)
upperBound(1, contrB)
val n = upperBound(1, contrN)
n: Number
<!TYPE_MISMATCH!>n<!>: Int
val b = upperBound(1, contrB)
b: Byte
<!TYPE_MISMATCH!>b<!>: Int
}