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
var _data;
bool _isValid = false;
...
bool get isValid => _isValid;
dynamic get data => _isValid ? _data : throw "Message structure is still incomplete";
Compliation fails with:
expected an expression, but got 'throw'
data type could be any inbuilt type, obviously this compiles ok if I wrap in {if...else...}
auto-run pub: true
mem max/total/free: 889 / 198 / 142 MB
thread count: 26
analysis: 0 tasks, 65 libraries, 2 contexts
index: 87111 relationships and 0 attributes in 15889 elements in 203 resources stored in 3 MB on disk
SDK installed: true
Dartium installed: true
The text was updated successfully, but these errors were encountered:
Dart2JS
In editor, -> Run as JavaScript:
var _data;
bool _isValid = false;
...
bool get isValid => _isValid;
dynamic get data => _isValid ? _data : throw "Message structure is still incomplete";
Compliation fails with:
expected an expression, but got 'throw'
data type could be any inbuilt type, obviously this compiles ok if I wrap in {if...else...}
////////////////////////////////////////////////////////////////////////////////////
Editor: 0.3.5_r18300 (2013-02-08)
OS: Windows 7 - amd64 (6.1)
JVM: 1.7.0_13
projects: 1
open dart files: 0
auto-run pub: true
mem max/total/free: 889 / 198 / 142 MB
thread count: 26
analysis: 0 tasks, 65 libraries, 2 contexts
index: 87111 relationships and 0 attributes in 15889 elements in 203 resources stored in 3 MB on disk
SDK installed: true
Dartium installed: true
The text was updated successfully, but these errors were encountered: