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
This is a minor change with just bug fixes:
* Handle trailing commas in for-loop updaters (#1354).
* Format `||` patterns like fallthrough cases in switch expressions (#1602).
* Handle comments and metadata before variables more gracefully (#1604).
* Ensure comment formatting is idempotent (#1606).
* Better indentation of leading comments on property accesses in binary operator
operands (#1611).
* Don't crash on doc comments in local variable declarations (#1621).
This won't affect much code, but it does change the formatting in some cases.
Change-Id: I2d52fee92aecbc24315e4f1a89360af85ec85942
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401482
Auto-Submit: Bob Nystrom <[email protected]>
Commit-Queue: Alexander Thomas <[email protected]>
Reviewed-by: Alexander Thomas <[email protected]>
This issue was originally filed by [email protected]
The 'native' keyword is supposed to only be allowed in core libraries.
SyntaxtTest 29 & 30 are failing
Here's a simple repro case:
$ cat >/tmp/t.dart
class NativeClass
native "FooBar" /// 30: compile-time error
{}
main() {
}
$ dartc /tmp/t.dart
We expect dartc to throw a compile-time error in this case, but it runs without any errors.
The text was updated successfully, but these errors were encountered: