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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate if locals/args exist when adding a type declaration #603
Validate if locals/args exist when adding a type declaration #603
Conversation
there seems to be a broken part of the build because of the PR :) |
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.
Cool! 馃殌
I left some questions and comments to check.
Now the CI is broken 馃憥
{ #category : #translation } | ||
SLBasicTestDeclarationClass class >> typeForSelf [ | ||
|
||
^#implicit | ||
] |
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.
Why is this necessary? Is it not always implicit
(except for structs)?
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.
The inherited behaviour from SlangClass
is to return nil
. Or are you saying that at some point that nil
defaults to #implicit
?
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 was just asking for understanding, because this definition is in the tests, but maybe could be in a more general place? I don't know.
Anyway, it is out of the scope of this PR, so we can continue with our life.
@@ -179,7 +179,6 @@ ComposedImageReader >> readPermanentSpaceDataFromImage: imageFileName startingAt | |||
ComposedImageReader >> readPermanentSpaceFromImageFile: imageFileName header: aHeader [ | |||
|
|||
<inline: false> | |||
<var: #imageFile type: #sqImageFile> |
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.
馃憦
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.
Little comments over here and there
Failing tests are not related. Windows is not compiling, but neither is in the main branch. I think that it is mergeable 馃憤 |
I just fixed a merge conflict, I'll wait the CI to see if I did well :) |
Tests are green!! Thanks!! |
fix #598
Adds a validation at
TMethod >> declarationAt: aVariableName put: aDeclaration
Removed unused type declarations and then generated the VM C Code and compiled succesfully 馃殌