Skip to content

Conversation

@ringabout
Copy link
Member

@ringabout ringabout commented Dec 6, 2022

fixes #21027

@Araq Araq added the merge_when_passes_CI mergeable once green label Dec 6, 2022
@beef331
Copy link
Collaborator

beef331 commented Dec 6, 2022

The present message is not very helpful, I'd suggest something along the lines of "Invalid usage of cast, cast requires a type to convert to. eg: cast[int](0d)".

@Araq Araq merged commit 1564ae6 into devel Dec 6, 2022
@Araq Araq deleted the pr_21027 branch December 6, 2022 12:09
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 1564ae6

Hint: mm: orc; opt: speed; options: -d:release
165507 lines; 10.334s; 612.699MiB peakmem

survivorm pushed a commit to survivorm/Nim that referenced this pull request Feb 28, 2023
* fixes nim-lang#21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* fixes nim-lang#21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331
narimiran pushed a commit that referenced this pull request Apr 25, 2023
* fixes #21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331

(cherry picked from commit 1564ae6)
narimiran pushed a commit that referenced this pull request Apr 25, 2023
* fixes #21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331

(cherry picked from commit 1564ae6)
narimiran pushed a commit that referenced this pull request Apr 25, 2023
* fixes #21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331

(cherry picked from commit 1564ae6)
narimiran pushed a commit that referenced this pull request Apr 25, 2023
* fixes #21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331

(cherry picked from commit 1564ae6)
narimiran pushed a commit that referenced this pull request Apr 26, 2023
* fixes #21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331

(cherry picked from commit 1564ae6)
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
* fixes nim-lang#21027; cast expressions need a type

* Apply suggestions from code review

Thanks to @beef331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge_when_passes_CI mergeable once green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SIGSEGV when cast is Improperly Formatted

4 participants