Improved error reporting for candidates with wrong parameter count
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
class X<T>(val t: T) {
|
||||
constructor(t: T, i: Int) : <!NONE_APPLICABLE!>this<!>(i)
|
||||
}
|
||||
constructor(t: T, i: Int) : this(<!TYPE_MISMATCH!>i<!>)
|
||||
}
|
||||
Reference in New Issue
Block a user