mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add test for 8cf42709
This commit is contained in:
@@ -45,3 +45,16 @@ assert('Abbreviated variable assignment', '11.4.2.3.2') do
|
||||
c += 2
|
||||
a == 1 and b == nil and c == 3
|
||||
end
|
||||
|
||||
assert('Nested const reference') do
|
||||
module Syntax4Const
|
||||
CONST1 = "hello world"
|
||||
class Const2
|
||||
def const1
|
||||
CONST1
|
||||
end
|
||||
end
|
||||
end
|
||||
Syntax4Const::CONST1 == "hello world" and
|
||||
Syntax4Const::Const2.new.const1 == "hello world"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user