NokiaTube | New address | Mode Desktop | On high quality
Skip to content

Add failing test for OVERRIDE on functions from libraries - #3299

Open
rootkiller6788 wants to merge 1 commit into
google:mainfrom
rootkiller6788:test-function-override-modifier
Open

rootkiller6788 wants to merge 1 commit into
google:mainfrom
rootkiller6788:test-function-override-modifier

Conversation

@rootkiller6788

Copy link
Copy Markdown

Adds an AA unit test that reproduces #3298.

The test reads the modifiers of the functions declared in lib.Impl, a class from a compiled dependency, and asserts that:

  • a non-operator override reports OVERRIDE;
  • a non-overriding operator function does not report OVERRIDE.

On current main the processor returns:

minus : FINAL, OPERATOR, OVERRIDE, PUBLIC
overridden : OPEN, PUBLIC

so the test is registered with runFailingTest and @Bug("https://github.com/google/ksp/issues/3298", BugState.OPEN), as described in CONTRIBUTING.md. The fix is in #3262; once that lands the test should be flipped to runTest / BugState.FIXED.

Functions read from a compiled dependency report OVERRIDE for operator functions that do not override anything, and omit it for real non-operator overrides. The new AA test asserts the correct modifiers for both cases and is expected to fail until the implementation is fixed.

Bug: google#3298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant