[JS IR BE] Fix inline classes workarounds

- Remove uninitialized return type check
- Remove unbound classifier symbol check
This commit is contained in:
Svyatoslav Kuzmich
2018-11-29 16:18:14 +03:00
parent 7cbc8e8b76
commit 8359887696
5 changed files with 27 additions and 16 deletions
@@ -48,10 +48,6 @@ fun IrType.isInlined(): Boolean = this.getInlinedClass() != null
private tailrec fun erase(type: IrType): IrClass? {
val classifier = type.classifierOrFail
// TODO: Fix unbound symbols
if (!classifier.isBound)
return null
return when (classifier) {
is IrClassSymbol -> classifier.owner
is IrTypeParameterSymbol -> erase(classifier.owner.superTypes.first())