mirror of
https://github.com/KarolS/millfork.git
synced 2025-03-23 18:35:58 +00:00
Fix lookup
This commit is contained in:
parent
9bc4bb949e
commit
5215400cb2
@ -311,7 +311,7 @@ class Environment(val parent: Option[Environment], val prefix: String, val cpuFa
|
||||
val clazz = implicitly[Manifest[T]].runtimeClass
|
||||
if (things.contains(name)) {
|
||||
val t: Thing = things(name)
|
||||
if ((t ne null) && clazz.isInstance(t)) {
|
||||
if ((t ne null) && clazz.isInstance(t) && !t.isInstanceOf[Alias]) {
|
||||
t.asInstanceOf[T]
|
||||
} else {
|
||||
t match {
|
||||
|
Loading…
x
Reference in New Issue
Block a user