1
0
forked from Mirror/wren

Merge pull request #751 from wren-lang/0.3.0-refactor

0.3.0 refactor
This commit is contained in:
ruby
2020-06-05 14:57:20 -07:00
committed by GitHub
parent 6ab4abe9e3
commit d585a080e8
476 changed files with 13159 additions and 93444 deletions

View File

@ -1,6 +0,0 @@
// Import a module from within a named package.
import "foo/within_foo" for Foo
// expect: ran foo module
// expect: ran bar module
System.print(Foo) // expect: from foo

View File

@ -1,5 +0,0 @@
// nontest
var Bar = "from bar"
System.print("ran bar module")
import "foo/within_foo"

View File

@ -1,5 +0,0 @@
// nontest
var Foo = "from foo"
System.print("ran foo module")
import "bar/within_bar"

View File

@ -1,5 +0,0 @@
// Import a module whose name is the same as the package.
import "foo" for Module
// expect: ran module
System.print(Module) // expect: from module

View File

@ -1,3 +0,0 @@
// nontest
var Module = "from module"
System.print("ran module")

View File

@ -1,3 +0,0 @@
// Stops as soon as it finds a wren_modules directory, regardless of whether or
// not it contains the desired module.
import "foo" // expect runtime error: Could not load module 'foo'.

View File

@ -1 +0,0 @@
This file exists just to make Git create the containing directory.

View File

@ -1,2 +0,0 @@
// nontest
System.print("ran foo module")

View File

@ -1,3 +0,0 @@
// Walk up parent directories from the root script to find "wren_modules".
import "foo"
// expect: ran foo module

View File

@ -1,2 +0,0 @@
// nontest
System.print("ran foo module")