Skip to content

BTOUCH generates invalid .g.cs file when [Internal] and [Protected] are specified #6889

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Hi Team,

When you specify both [Internal] and [Protected] attributes on an exported item in the Api definitions file, btouch generate an invalid « .g.cs » source file, resulting in a compilation error.

Example:

In ApiDefinition.cs
[Export(«dummyMethod« )]
[Internal]
[Protected]
void DummyMethod ();

Resulting binding method in the .g.cs source file:
protectedinternal unsafe virtual void DummyMethod ()

As you can see the access specifiers are concatenated without space.

Thank you


Original Comments

Visual Studio Feedback System on 8/27/2019, 00:42 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixgeneratorIssues affecting the generatoriOSIssues affecting iOS

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions