You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn1 brokes when var declares a function with Void arguments. Any other argument type works fine.
fn2 brokes everything below when function declared without curly braces. Workaround here is to use function with body declared in curly braces, for example: function() {return 5;}
classTest {
varfn1:Void->Void=function():Void {}; // Incompatible type error for Void argument functionsvarfn2:Void->Int=function() return5;
publicstaticfunctionmain():Void { // "public" unexpected after var with short function
}
}
Plugin version: 0.10.1-RC2
Idea: 2016.2
The text was updated successfully, but these errors were encountered:
var fn2: Void -> Int = function() return 5;
public static function main(): Void { // "public" unexpected after var with short function
This block is parsing incorrectly because fn2 is awaiting for closing semicolon, existing semicolon is belongs to returnStatement (from functionCommonBody)
fn1
brokes when var declares a function withVoid
arguments. Any other argument type works fine.fn2
brokes everything below when function declared without curly braces. Workaround here is to use function with body declared in curly braces, for example:function() {return 5;}
Plugin version:
0.10.1-RC2
Idea:
2016.2
The text was updated successfully, but these errors were encountered: