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

Support new C# styles #117

Open
kekyo opened this issue May 11, 2022 · 1 comment
Open

Support new C# styles #117

kekyo opened this issue May 11, 2022 · 1 comment
Projects

Comments

@kekyo
Copy link
Owner

kekyo commented May 11, 2022

ImplicitUsing

In .NET 6 SDK cli:

dotnet new console

Source code results only 1 line:

Console.WriteLine("Hello world");

That code is placed into global namespace. IL2C currently doesn't support any global namespaces.

Nullable

Any nullable reference types don't affect any IL code, but it requires to implement by some attribute types.
IL2C currently doesn't have Attribute base type.

In IL2C, it may be better to just define an Attribute type, since (for now) all attributes are simply ignored.

@kekyo
Copy link
Owner Author

kekyo commented May 27, 2022

In 3400c23, found same problem for global function in built net6.0 tfm.
This tfm always created Main() method and assigned for entry point attribute on library assembly.

Related #119

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Release 0.5
  
To do
Development

No branches or pull requests

1 participant