-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Pending leftovers to support // and &-ops in multiple places #7628
Conversation
0c54cb8
to
e540560
Compare
Thanks for all the reviews, but the CI wasn't happy. |
@@ -83,11 +83,20 @@ describe "Semantic: static array" do | |||
|
|||
it "types static array new with size being a computed constant" do | |||
assert_type(%( | |||
struct Int | |||
def //(other : Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found it a bit odd that the value of SIZE
can be computed by the math interpreter but the definition is still needed. It's similar to what is done in https://github.com/crystal-lang/crystal/blob/master/spec/compiler/semantic/const_spec.cr#L237-L239 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just needed for the typing phase, so the implementation can be just a 0
. I've just pushed that change
The parser already handle ://, :&+ etc as valid symbols
Remove unneeded quoted symbols from highlighter
71be379
to
5397e39
Compare
Some missing bits to fully support
//
in all places were/
is supported today.Ref: #2968