Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a small bug in message origin for warnings from static field acce…
…ss on generic type (#3186) The warning needs to be generated from the origin where the field reference comes from - so if it's a method body, then from the method body. This is because the instantiation is determined by that place, not the field itself (the field is defined on an open generic definition of the type). This syncs the relevants tests with a NativeAOT work-in-progress change, but in generately it adds a lot more cases and some better comments. Co-authored-by: Tlakaelel Axayakatl Ceja <[email protected]>
- Loading branch information