KT-5697 Duplicate Unit type

#KT-5697 Fixed
This commit is contained in:
Andrey Breslav
2014-08-28 19:03:58 +04:00
parent ec12d1d71d
commit d80907543f
3 changed files with 26 additions and 1 deletions
@@ -0,0 +1,20 @@
// FILE: f1.kt
package kotlin
class Unit
// FILE: f2.kt
class C: MutableIterator<Int> {
override fun remove(): Unit {
throw UnsupportedOperationException()
}
override fun next(): Int {
throw UnsupportedOperationException()
}
override fun hasNext(): Boolean {
throw UnsupportedOperationException()
}
}