test: 重构 Demo22 模块导入和文件布局
- 修改 Main.snow,移除未使用的 ModuleA 导入 - 将 ModuleA.snow 文件内容合并到 Main.snow 中
This commit is contained in:
parent
d10b7336c1
commit
310e909359
@ -1,5 +1,5 @@
|
||||
module: Main
|
||||
import: os,ModuleA
|
||||
import: os
|
||||
globals:
|
||||
declare sum: int
|
||||
function: main
|
||||
@ -10,3 +10,8 @@ module: Main
|
||||
end body
|
||||
end function
|
||||
end module
|
||||
|
||||
module: ModuleA
|
||||
globals:
|
||||
declare const a: int =10
|
||||
end module
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
module: ModuleA
|
||||
globals:
|
||||
declare const a: int =10
|
||||
end module
|
||||
Loading…
x
Reference in New Issue
Block a user