DEV: Remove the shape specifier for a funcion.

This commit is contained in:
Jeremy Wall 2020-04-26 11:22:12 -04:00
parent 577aa5e72a
commit 8b3552e491
2 changed files with 3 additions and 2 deletions

View File

@ -112,13 +112,15 @@ assert t.ok{
desc = "You can cast true into a string",
};
// Shapes and their specifiers
let mystr::"" = "a string";
let struct_shape = {
foo :: "" = "",
};
let func_shape = func(arg :: "", arg2 :: "") => arg + arg2 :: "";
let func_shape = func(arg :: "", arg2 :: "") => arg + arg2;
let module_shape = module{self={}} => (result :: {}) {
let result :: {} = self;

View File

@ -437,7 +437,6 @@ fn func_expression(input: SliceIter<Token>) -> Result<SliceIter<Token>, Expressi
_ => must!(punct!(")")),
_ => must!(punct!("=>")),
map => trace_parse!(expression),
_ => optional!(shape_suffix),
(pos, arglist, map)
);
match parsed {