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

[DllImportGenerator] warn on non-partial class's parents #1088

Closed
SupinePandora43 opened this issue May 7, 2021 · 1 comment · Fixed by #1091
Closed

[DllImportGenerator] warn on non-partial class's parents #1088

SupinePandora43 opened this issue May 7, 2021 · 1 comment · Fixed by #1091
Assignees
Labels
area-DllImportGenerator Source Generated stubs for P/Invokes in C#

Comments

@SupinePandora43
Copy link

public class Something {
    internal static partial class PInvokes {
        [GeneratedDllImport("Example")]
        internal static partial void DoSomething([MarshalAs(UnmanagedType.I1)] bool enable);
    }
}

Expected result

warning

Actual result

CS0101: The namespace 'MyNamespace' already contains a definition for 'Something'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DllImportGenerator Source Generated stubs for P/Invokes in C#
Projects
None yet
2 participants