nddrylliog/rock — Issue #348: Rock has trouble with array return types
Author: shamanas
Created: 2011-12-03 16:00:52+00:00
State: open

The following code works:

f: func -> SSizeT[] {
return [1,2,3,4]
}

However, it causes rock to go nuts (ERROR Couldn't add { } after [1, 2, 3, 4] in scope.) when autoreturn is used, such as:

f: func->SSizeT[] {
[1,2,3,4]
}