Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

language/const_syntax_test/[1,2,3] should not be compile-time errors #3626

Closed
scheglov opened this issue Jun 14, 2012 · 4 comments
Closed

language/const_syntax_test/[1,2,3] should not be compile-time errors #3626

scheglov opened this issue Jun 14, 2012 · 4 comments
Labels
area-language New language issues should be filed at https://github.com/dart-lang/language

Comments

@scheglov
Copy link
Contributor

For example "/1" looks as valid code for me.
I don't see why it should cause compile-time error.


main() {
  Expect.equals(42, FOO); /// 01: compile-time error
}

const FOO = 42; /// 01: continued

class C {
}


@whesse
Copy link
Member

whesse commented Jun 15, 2012

Moved issues with specific language tests to the area "Language". These tests should be fixed by the language deciders and implementers.


Removed Area-Test label.
Added Area-Language label.

@DartBot
Copy link

DartBot commented Jul 26, 2012

This comment was originally written by @mhausner


This test was written in Feb 2012, when const was (newly) illegal in variable and field declarations. The test is outdated.

@srawlins
Copy link
Member

srawlins commented Aug 9, 2014

These have been moved. Is this still an issue?

@scheglov scheglov added Type-Defect area-language New language issues should be filed at https://github.com/dart-lang/language labels Aug 9, 2014
@mhausner
Copy link
Contributor

mhausner commented Dec 4, 2015

Obsolete.

@mhausner mhausner closed this as completed Dec 4, 2015
@kevmoo kevmoo removed the triaged label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language New language issues should be filed at https://github.com/dart-lang/language
Projects
None yet
Development

No branches or pull requests

6 participants