Skip to content
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

decompiled c# 7.3 code has recursive patterns from 8.0 #2888

Closed
H-A-M-G-E-R opened this issue Jan 20, 2023 · 5 comments
Closed

decompiled c# 7.3 code has recursive patterns from 8.0 #2888

H-A-M-G-E-R opened this issue Jan 20, 2023 · 5 comments
Labels

Comments

@H-A-M-G-E-R
Copy link

Steps to reproduce

  1. Decompile this: https://edit-sm.art/download/SMART.1.19.8261.19946.zip and decompress the .compressed files from custora
  2. Try to compile it

Error message shown

Feature 'recursive patterns' is not available in C# 7.3. Please use language version 8.0 or later.

Details

ILSpy version 8.0.0.7106

@siegfriedpammer
Copy link
Member

Can you tell us WHICH of the 13 compressed costura files we need to look at? Please also mention the full namespace, class and name of the member that contains the error.

Also, we haven't yet implemented support for recursive patterns in ILSpy, I would love to see the code that produces this compiler error. Thanks!

@H-A-M-G-E-R
Copy link
Author

line 3141 in BtnPasteMapData_Click in MapEditor.cs and line 1982 in AllocateRooms in ProjectBody.cs
also decompressed and added all of the 13 compressed costura files

@H-A-M-G-E-R
Copy link
Author

it's trying to put the 'is' operator on a tuple type

@H-A-M-G-E-R
Copy link
Author

H-A-M-G-E-R commented Jan 25, 2023

after i fixed it, the compiler gave CS8050 errors on compiler-generated code

@H-A-M-G-E-R
Copy link
Author

and after i removed all compiler-generated code it still gives errors

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants