Fix check for instance for types with compatible upper bounds
#KT-5246 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// check that there is no SOE on checking for instance
|
||||
interface Visitor<T>
|
||||
interface Acceptor<T>
|
||||
|
||||
class Word : Acceptor<Visitor<Word>>
|
||||
|
||||
class V : Visitor<Word>
|
||||
|
||||
class S<T : Acceptor<U>, U : Visitor<T>>(val visitor: U, val acceptor: T) {
|
||||
fun test() {
|
||||
visitor is V
|
||||
acceptor is Word
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user