Fix cacheing of module type (#1393)

This fixes an issue where the `module` type is incorrectly cached.
This commit is contained in:
Daniel Chao
2026-01-05 14:49:07 -08:00
committed by GitHub
parent 6cd03c7f56
commit 4f4f03dbca
9 changed files with 226 additions and 59 deletions
@@ -0,0 +1,34 @@
open module Foo
prop: String
myself: module?
class Bar extends module {
prop2: Int
}
class Baz extends module {
prop2: String
}
output {
value = new Dynamic {
bar = new Bar {
prop = "hi"
prop2 = 15
myself {
prop = "hi again"
prop2 = 15
}
}
baz = new Baz {
prop = "hi"
prop2 = "hihi"
myself {
prop = "hihihi"
prop2 = "hihihihi"
}
}
}
}
@@ -0,0 +1,18 @@
open module TheModule
mod: module? = Null(new module {})
class Bar extends module {
num: Int
}
output {
value = new Dynamic {
bar = new Bar {
num = 5
mod {
num = 6
}
}
}
}
@@ -0,0 +1,28 @@
open module TheModule
mod: module? = Null(new module {})
open class Bar extends module {
num: Int
}
open class Baz extends module {
num2: Int
}
output {
value = new Dynamic {
bar = new Bar {
num = 5
mod {
num = 5
}
}
baz = new Baz {
num2 = 5
mod {
num2 = 5
}
}
}
}
@@ -0,0 +1,18 @@
bar {
prop = "hi"
myself {
prop = "hi again"
myself = null
prop2 = 15
}
prop2 = 15
}
baz {
prop = "hi"
myself {
prop = "hihihi"
myself = null
prop2 = "hihihihi"
}
prop2 = "hihi"
}
@@ -0,0 +1,7 @@
bar {
mod {
mod = null
num = 6
}
num = 5
}
@@ -0,0 +1,14 @@
bar {
mod {
mod = null
num = 5
}
num = 5
}
baz {
mod {
mod = null
num2 = 5
}
num2 = 5
}