diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-07-27 16:56:45 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-07-27 16:56:45 +0800 |
| commit | 99692899d1e793e2cbbaea03107cb0a5f5e5c452 (patch) | |
| tree | 44745041f0aa184b8cafc98427c7b627b38c3c96 /spec | |
| parent | c017493f56e98fcbc88f9459b9c10b3e1acc3e6e (diff) | |
| download | yuescript-99692899d1e793e2cbbaea03107cb0a5f5e5c452.tar.gz yuescript-99692899d1e793e2cbbaea03107cb0a5f5e5c452.tar.bz2 yuescript-99692899d1e793e2cbbaea03107cb0a5f5e5c452.zip | |
Fixed issue #222.v0.29.3
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/import.yue | 10 | ||||
| -rw-r--r-- | spec/outputs/import.lua | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/spec/inputs/import.yue b/spec/inputs/import.yue index b8ffc24..8982e6c 100644 --- a/spec/inputs/import.yue +++ b/spec/inputs/import.yue | |||
| @@ -139,3 +139,13 @@ do | |||
| 139 | import "m" as {c: d} | 139 | import "m" as {c: d} |
| 140 | import "m" as {g, {<close>: i}} | 140 | import "m" as {g, {<close>: i}} |
| 141 | 141 | ||
| 142 | do | ||
| 143 | import require | ||
| 144 | import string as stringlib | ||
| 145 | import string.format | ||
| 146 | import io.read as io_read | ||
| 147 | |||
| 148 | type = -> | ||
| 149 | import type as tp | ||
| 150 | import 月 as yue | ||
| 151 | |||
diff --git a/spec/outputs/import.lua b/spec/outputs/import.lua index 83c99e2..7aa130f 100644 --- a/spec/outputs/import.lua +++ b/spec/outputs/import.lua | |||
| @@ -166,3 +166,13 @@ do | |||
| 166 | local _obj_1 = require("m") | 166 | local _obj_1 = require("m") |
| 167 | g, i = _obj_1[1], getmetatable(_obj_1[2]).__close | 167 | g, i = _obj_1[1], getmetatable(_obj_1[2]).__close |
| 168 | end | 168 | end |
| 169 | do | ||
| 170 | local require <const> = require | ||
| 171 | local stringlib <const> = string | ||
| 172 | local format <const> = string.format | ||
| 173 | local io_read <const> = io.read | ||
| 174 | local type | ||
| 175 | type = function() end | ||
| 176 | local tp <const> = _G.type | ||
| 177 | local yue <const> = _G["月"] | ||
| 178 | end | ||
