Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
17
Found in
2021.2
2021.2.0a21
Issue ID
1343996
Regression
No
Target runtime doesn't support default interface implementation
Reproduction steps:
1. Open the "DefaultInterfaceImpl.zip" project attached by the user
2. Observe the Console window
Expected result: No errors in the Console
Actual result: Console logs an error "Assets/ITestInterface.cs(5,7): error CS8701: Target runtime doesn't support default interface implementation."
Reproducible with: 2021.2.0b1
Note:
- Can't test with 2018.4, 2019.4, 2020.3, 2021.1 because support for default interface methods was introduced in 2021.2.0a21
-
NornIndustries
Jun 24, 2021 17:09
I've upgraded Unity to 2021.2.0b1.3029, and Visual Studio to 16.10.2, and Visual Studio Editor package to 2.0.9. Cmd also reports: .NET SDK is 5.0.301 and version 5.0.7 (NETCore 3.1.16 & 5.0.7, etc)
Still getting: "Target runtime doesn't support default interface implementation." when I try and make a concrete function inside an interface.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a3
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b6