add basic type checking of lambda expressions

This commit is contained in:
Dave Holoway
2020-06-22 19:05:26 +01:00
parent 4f0e55a909
commit 56464ef537
4 changed files with 127 additions and 16 deletions

View File

@@ -87,7 +87,15 @@ class MethodType {
* eg. `() => null`
*/
class LambdaType {
/**
*
* @param {JavaType[]} param_types
* @param {ResolvedValue} return_type
*/
constructor(param_types, return_type) {
this.param_types = param_types;
this.return_type = return_type;
}
}
/**