Revert "disable an annoying old type check syntax"
All checks were successful
CI / test-core (14, ubuntu-latest, 3.x, interp) (push) Successful in 2m5s
CI / test-core (14, ubuntu-latest, 3.x, nodejs) (push) Successful in 1m48s
CI / test-core (14, ubuntu-latest, 3.x, py) (push) Successful in 2m2s
CI / test-core (14, ubuntu-latest, 3.x, js) (push) Successful in 3m11s
CI / test-core (14, ubuntu-latest, 3.x, cpp) (push) Successful in 3m48s
All checks were successful
CI / test-core (14, ubuntu-latest, 3.x, interp) (push) Successful in 2m5s
CI / test-core (14, ubuntu-latest, 3.x, nodejs) (push) Successful in 1m48s
CI / test-core (14, ubuntu-latest, 3.x, py) (push) Successful in 2m2s
CI / test-core (14, ubuntu-latest, 3.x, js) (push) Successful in 3m11s
CI / test-core (14, ubuntu-latest, 3.x, cpp) (push) Successful in 3m48s
This reverts commit 0e02c6c910
.
This commit is contained in:
@@ -472,12 +472,11 @@ class SpecialForms {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Type check syntax:
|
// Type check syntax:
|
||||||
k.doc("the", 2, 3, '(the <type> <value>)');
|
k.doc("the", 2, 3, '(the <?package> <type> <value>)');
|
||||||
map["the"] = (wholeExp:ReaderExp, args:Array<ReaderExp>, k:KissState) -> {
|
map["the"] = (wholeExp:ReaderExp, args:Array<ReaderExp>, k:KissState) -> {
|
||||||
var pkg = "";
|
var pkg = "";
|
||||||
var whichArg = "first";
|
var whichArg = "first";
|
||||||
if (args.length == 3) {
|
if (args.length == 3) {
|
||||||
throw KissError.fromExp(wholeExp, "(the <package> <Type> <value>) form is no longer allowed. use (the <package.Type> <value>) instead");
|
|
||||||
pkg = switch (args.shift().def) {
|
pkg = switch (args.shift().def) {
|
||||||
case Symbol(pkg): pkg;
|
case Symbol(pkg): pkg;
|
||||||
default: throw KissError.fromExp(wholeExp, '$whichArg argument to (the... ) should be a valid haxe package');
|
default: throw KissError.fromExp(wholeExp, '$whichArg argument to (the... ) should be a valid haxe package');
|
||||||
|
Reference in New Issue
Block a user