IR: .isBound API for F/O declarations

Fake override functions and properties may not be bound to symbols.
This API allows to know if such declaration is actually bound
This commit is contained in:
Anton Bannykh
2021-07-06 17:23:32 +03:00
committed by teamcityserver
parent 6c734289be
commit 76f0684d7c
6 changed files with 18 additions and 1 deletions
@@ -139,4 +139,7 @@ class IrFakeOverrideFunctionImpl(
symbol.bind(this)
return this
}
override val isBound: Boolean
get() = _symbol != null
}
@@ -126,4 +126,7 @@ class IrFakeOverridePropertyImpl(
symbol.bind(this)
return this
}
override val isBound: Boolean
get() = _symbol != null
}