Skip to content

Checking ADT with keyword parameters crashes TC #478

Closed
@PaulKlint

Description

module experiments::Compiler::Examples::Tst

 data F1 = f1(int N, int M = 10, bool B = false) | f1(str S);

 public value main(list[value] args) = f1(1, M=10)  := f1(1);

gives

rascal>demo("Tst", recompile=true,listing=true,debug=true)
Checking function main
Checking function main
|rascal://lang::rascal::types::CheckTypes|(197785,25,<3789,16>,<3789,41>): The called signature: extractPatternTree(sort("Pattern"), Configuration),
does not match the declared signature:  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern); BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  BindResult extractPatternTree(sort("Pattern"), Configuration); (concrete pattern);  

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions