From 7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 23 Jan 2020 14:35:14 +0800 Subject: fix Moonscript issue 156, update new 'import' functions. --- spec/inputs/import.moon | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'spec/inputs/import.moon') diff --git a/spec/inputs/import.moon b/spec/inputs/import.moon index d86d724..ef6f4ee 100644 --- a/spec/inputs/import.moon +++ b/spec/inputs/import.moon @@ -46,3 +46,22 @@ do c from z + +do + import 'module' + import 'module_x' + import "d-a-s-h-e-s" + import "module.part" + +do + import "player" as Player + import "lpeg" as {:C, :Ct, :Cmt} + +do + export * + import 'module' + import 'module_x' + import "org.package.module-y" + +do + import "org.package.module" as {function:func,if:ifVar} -- cgit v1.2.3-55-g6feb