1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-03-23 18:35:58 +00:00

Fix lookup

This commit is contained in:
Karol Stasiak 2020-03-26 01:36:15 +01:00
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 {