Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

VM does not yields compile error for uncqualified function invocation of undeclared identifier #7025

Closed
DartBot opened this issue Nov 29, 2012 · 7 comments
Assignees
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language).

Comments

@DartBot
Copy link

DartBot commented Nov 29, 2012

This issue was originally filed by alexe.kaigorodov@gmail.com


Consider following test:

main() {
  undeclared();
}

According to the spec v0.13:

12.14.3 Unqualified Invocation
"Otherwise, i is equivalent to this.id(a1, …, an, xn+1: an+1, …, xn+k: an+k). "

12.10 This
"It is a compile-time error if this appears in a top-level function or variable initializer, in a factory constructor, or in a static method or variable initializer, or in the initializer of an instance variable. "

the test should not comile. But VM compiles it (and throws NoSuchMethodError)

See also dart issue #6838 and co19 issue #332.

Affected tests:
Language/11_Expressions/14_Function_Invocation/3_Unqualified_Invocation_A01_t10.dart

@anders-sandholm
Copy link
Contributor

Added Area-VM, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Feb 8, 2013

This comment was originally written by rodion...@unipro.ru


Language/13_Libraries_and_Scripts/1_Imports_A02_t15 illustrates the same problem

@iposva-google
Copy link
Contributor

Removed Priority-Medium label.
Added Priority-Unassigned label.

@iposva-google
Copy link
Contributor

Still valid?


cc @gbracha.
Set owner to @mhausner.
Added Accepted label.

@gbracha
Copy link
Contributor

gbracha commented Oct 21, 2013

This is a spec bug; the current behavior is correct.

@DartBot
Copy link
Author

DartBot commented Oct 21, 2013

This comment was originally written by @mhausner


Over to Gilad.


Set owner to @gbracha.
Removed Area-VM label.
Added Area-Language label.

@gbracha
Copy link
Contributor

gbracha commented Oct 21, 2013

Added Done label.

@DartBot DartBot added Type-Defect area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). labels Oct 21, 2013
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Projects
None yet
Development

No branches or pull requests

5 participants