-
Notifications
You must be signed in to change notification settings - Fork 802
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
Print int[] as int array. #13700
Print int[] as int array. #13700
Conversation
@nojaf As we suspected we have a bunch of test failing now . Good first step. let tackle them in the next pair session :) |
e63be54
to
e5b2bd8
Compare
We are getting closer :D . We have some baseline tests that I created a PR to you fork to fix them :) Some VS integration test are also failing . Im not sure how to fix them . But we can finish that in our next Pair session :) |
30056b8
to
6e56873
Compare
@nojaf I think we need an extra rebasing on to main. to grab the fix for the test that are failing in the CI . Thanks in advance :) |
42d5b17
to
f4f6aee
Compare
e6d1b3d
to
5651cce
Compare
@vzarytovskii This is ready for a review :) . |
5651cce
to
266ac9e
Compare
@vzarytovskii I'm happy with this. |
@vzarytovskii I was wondering if this could make it to the next VS preview version ? . This will also benefit VSCode and Rider :) |
|
||
let (|TTypeMultiDimensionalArrayAsGeneric|_|) (t: TType) = | ||
let rec (|Impl|_|) t = | ||
match t with |
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.
This code is wrong
- once again we're matching directly on TType, we should almost never be doing this
- it looks like it is detecting jagged arrays, which is wrong
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.
Will have a look next week
@@ -893,6 +903,10 @@ module PrintTypes = | |||
// Always prefer 'float' to 'float<1>' | |||
| TType_app (tc, args, _) when tc.IsMeasureableReprTycon && List.forall (isDimensionless g) args -> | |||
layoutTypeWithInfoAndPrec denv env prec (reduceTyconRefMeasureableOrProvided g tc args) | |||
|
|||
// Special case for nested array<array<'t>> shape |
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.
This is wrong, and this rule should be removed. Also there are no tests for jagged arrays - they should be added.
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.
Will update next week. Thanks for the review
Initial attempt to address fsharp/fslang-suggestions#635.
The result of a pair-programming session with @edgarfgp 🎉.