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

instance fields cannot be used on the initializer list #431

Closed
ghost opened this issue Nov 12, 2011 · 4 comments
Closed

instance fields cannot be used on the initializer list #431

ghost opened this issue Nov 12, 2011 · 4 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@ghost
Copy link

ghost commented Nov 12, 2011

LangGuideTest/02_Language_Constructs/02_1_Class/02_1_Class_Construction/A08/t02

@DartBot
Copy link

DartBot commented Nov 12, 2011

This comment was originally written by @mhausner


The problem with that test is that it does not invoke the constructor A().

if I change main() to this:

main() {
  new A(0);
}

I get the proper error message:

02_1_Class_Construction_A08_t02.dart': Error: line 22 pos 19: illegal access to 'this'
  A(this.x) : y = x {}
                  ^

@iposva-google
Copy link
Contributor

Did you file a bug with the co19 test suite?


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

@DartBot
Copy link

DartBot commented Nov 29, 2011

This comment was originally written by @mhausner


Done. Issue #61.

http://code.google.com/p/co19/issues/detail?id=61

@DartBot
Copy link

DartBot commented Nov 29, 2011

This comment was originally written by @mhausner


It's a test issue. Bug filed, see above.


Added Fixed label.

@ghost ghost added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Nov 29, 2011
nex3 pushed a commit that referenced this issue Aug 31, 2016
copybara-service bot pushed a commit that referenced this issue Sep 21, 2022
Changes:
```
> git log --format="%C(auto) %h %s" 32a9450..87e4c68
 https://dart.googlesource.com/markdown.git/+/87e4c68 Bump to 6.0.1 (#462)
 https://dart.googlesource.com/markdown.git/+/37305cf Add deprecated accessors for indicatorForUncheckedCheckBox and indicatorForCheckedCheckBox (#459)
 https://dart.googlesource.com/markdown.git/+/2e5e347 lint cleanup (#456)
 https://dart.googlesource.com/markdown.git/+/a0b5a05 example: small tweak to example – add Dart code (#455)
 https://dart.googlesource.com/markdown.git/+/de32a69 visitText to use textContent getter so subclassing Text class works correctly. (#431)
 https://dart.googlesource.com/markdown.git/+/8247955 Rewrite checkbox(task list) extension (#450)
 https://dart.googlesource.com/markdown.git/+/a602760 Fix crash with mixed checkbox lists (#449)

```

Diff: https://dart.googlesource.com/markdown.git/+/32a94505ded3863b82310b86344a003a19c00341~..87e4c689342d5bbaa84ba2999abf0bff503979be/
Change-Id: I92cf05fe6057e1b3eda8da09fc4eac4f67dd47ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260441
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

2 participants