-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
What happened?
The new source generator doesn't automatically implement IRealmObject when used with file-scoped namespace approach. With classic namespace syntax everything is good, may be related to #3130
Repro steps
- Add new model with file-scoped namespace.
- Then add same model with classic namespace brackets.
Version
7
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Xamarin
Client OS and version
Not relevant
Code snippets
namespace MyApp.Models; public partial class SomeObject : IRealmObject { public string SomeProperty { get; set; } }
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response