[FIR] Enhance diagnostic DSL to be able to use concrete factories

Before this commit, things like DiagnosticFactory0<KtDeclaration>
were effectively unusable.
This commit is contained in:
Mikhail Glukhikh
2020-03-25 14:43:44 +03:00
parent a1d81aa15f
commit 2f63c8a46a
10 changed files with 142 additions and 123 deletions
@@ -11,10 +11,10 @@ object A2 public constructor(private val prop: Int) {
}
val x = object (val prop: Int) {
<!CONSTRUCTOR_IN_OBJECT, CONSTRUCTOR_IN_OBJECT!>constructor() : <!UNRESOLVED_REFERENCE!>this<!>(1) {
<!CONSTRUCTOR_IN_OBJECT, CONSTRUCTOR_IN_OBJECT!>constructor()<!> : <!UNRESOLVED_REFERENCE!>this<!>(1) {
val x = 1
x * x
}<!>
}
}
class A3 {