forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I couldn't come up with a case that went through else "Giving up". Here is the output: ``` $ ./build/debug/ponyc minimal-cases/issue-2508/ Building builtin -> /home/wink/prgs/pony/ponyc/packages/builtin Building minimal-cases/issue-2508/ -> /home/wink/prgs/pony/ponyc/minimal-cases/issue-2508 suggest_alt_name:+ name=doit suggest_alt_name: ast (reference (id doit)) suggest_alt_name: case_ast (fun:scope box (id doIt) x x (nominal (id $0) (id None) x val x x) x (seq (reference (id None)) (reference (id None))) x) suggest_alt_name: first box suggest_alt_name: second (id doIt) suggest_alt_name: Using second, tk=8 suggest_alt_name:- name=doit try_name=doIt suggest_alt_name: ast (reference (id doit)) suggest_alt_name:+ name=astr suggest_alt_name: ast (reference (id astr)) suggest_alt_name: case_ast (fvar (id aStr) (nominal (id $0) (id String) x val x x) x) suggest_alt_name: first (id aStr) suggest_alt_name: second (nominal (id $0) (id String) x val x x) suggest_alt_name: Using first, tk=8 suggest_alt_name:- name=astr try_name=aStr suggest_alt_name: ast (reference (id astr)) Error: /home/wink/prgs/pony/ponyc/minimal-cases/issue-2508/main.pony:5:5: can't find declaration of 'doit', did you mean 'doIt'? doit() // crash compiler ^ Error: /home/wink/prgs/pony/ponyc/minimal-cases/issue-2508/main.pony:10:5: can't find declaration of 'astr', did you mean 'aStr'? astr ^ ```
- Loading branch information
1 parent
61a7a2e
commit 2de3ff3
Showing
3 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
actor Main | ||
var aStr: String = "help" | ||
|
||
new create(env: Env) => | ||
doit() // crash compiler | ||
//doIt() // OK | ||
aStr = xx() | ||
|
||
fun xx(): String => | ||
astr | ||
//aStr // OK | ||
|
||
fun doIt() => | ||
None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters