When include-ing a class, we propagated the scope of the include into the class instead of using the correct scope that existed when the class was defined and instead propagating only the include arguments in. This patch fixes the issue and adds a ton of tests as well. It also propagates the scope into the include args, in case that is needed, and adds a test for that as well. Thanks to Nicolas Charles for the initial bug report.
6 lines
90 B
Plaintext
6 lines
90 B
Plaintext
import "second.mcl"
|
|
|
|
import "os" # this fixes it but the wrong way
|
|
|
|
include second.xclass
|