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
When calling a constructor with the wrong arguments it points to the wrong line in the following example.
$ cat /tmp/bug.dart
class A {
const A();
A foo() => null;
}
main() => new A('foo');
$ out/Release_ia32/dart /tmp/bug.dart
'/tmp/bug.dart': Error: line 3 pos 3: invalid arguments passed to constructor 'A' for class 'A'
A foo() => null;
^
The text was updated successfully, but these errors were encountered:
When calling a constructor with the wrong arguments it points to the wrong line in the following example.
$ cat /tmp/bug.dart
class A {
const A();
A foo() => null;
}
main() => new A('foo');
$ out/Release_ia32/dart /tmp/bug.dart
'/tmp/bug.dart': Error: line 3 pos 3: invalid arguments passed to constructor 'A' for class 'A'
A foo() => null;
^
The text was updated successfully, but these errors were encountered: