Underlying constructor for type alias should always be substituted

Otherwise PSI2IR fails because of type mismatch.
This commit is contained in:
Dmitry Petrov
2018-03-16 17:11:24 +03:00
parent bfcf1584a2
commit eb5904ea8e
8 changed files with 81 additions and 15 deletions
@@ -100,7 +100,8 @@ class SymbolTable {
private var currentScope: Scope? = null
override fun get(d: D): S? {
val scope = currentScope ?: throw AssertionError("No active scope")
val scope = currentScope
?: throw AssertionError("No active scope")
return scope[d]
}