New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bogus warning about ambiguous method #1191
Comments
Problem does not exist in Core dialect |
cpyrgas
pushed a commit
to X-Sharp/XSharpDev
that referenced
this issue
Dec 14, 2022
RobertvanderHulst
added a commit
to X-Sharp/XSharpDev
that referenced
this issue
Dec 14, 2022
RobertvanderHulst
added a commit
to X-Sharp/XSharpDev
that referenced
this issue
Dec 27, 2022
I'm still getting this one. Robert, I think you cheated by changing the test's Dialect to Core :) |
cpyrgas
pushed a commit
to X-Sharp/XSharpDev
that referenced
this issue
Jan 6, 2023
RobertvanderHulst
moved this from In progress
to Needs testing
in Build 2.15 - fixes in X# 2
Jan 17, 2023
Just adding another case, as reported in https://www.xsharp.eu/forum/private-product/3329-2-14-0-4-compiler-errors-xs0121-and-xs1503#25003. Will test the updated compiler afterwards.
|
RobertvanderHulst
added a commit
to X-Sharp/XSharpDev
that referenced
this issue
Jan 18, 2023
* [Compiler tests] Adjusted tests for X-Sharp/XSharpPublic#1187 and X-Sharp/XSharpPublic#1191 * [Compiler tests] Added C877 and adjusted R882 for X-Sharp/XSharpPublic#1184 * [Compiler tests] Added C878 for X-Sharp/XSharpPublic#1194 (and missing C877 from previous commit) * [Common] Fixes #X-Sharp/XSharpPublic/issues/1194 * WIP on StackAlloc, debugger sequence points and line numbers in error messages * [Compiler tests] Added test C879 for X-Sharp/XSharpPublic#1195 * [Compiler] Switch to .Net Analyzers version 7.0.0 * [Compiler] Fixes #X-Sharp/XSharpPublic/issues/1195 Adjust overload resolution to only use our "logic" when: - functions are involved - our types are involved - param is passed by reference - argument is enum * [Compiler] Suppress error messages about updated NetAnalyzers. Also suppress NetAnalyzer all together for X# code * [Tests] Fixed one more test * Fixes #X-Sharp/XSharpPublic/issues/1184, C877 and R882 * [Tests] SUM command has been fixed in the header file * [Compiler] Fixes #X-Sharp/XSharpPublic/issues/1084 * [Tests] Added test for Stackalloc keyword * [Compiler] A predicate prevents STACKALLOC(123) from being parsed as STACKALLOC followed by a paren expression * [Compiler] Fixes #X-Sharp/XSharpPublic/issues/1166, issue number 1 * [Compiler] Fixes #X-Sharp/XSharpPublic/issues/1109 * [Tests] Added pragma to several tests to suppress messages about missing REF or OUT modifiers for parameters * [tests] Changed incorrect '.' operators to ':' in two tests * [tests] Updated STACKALLOC test to use STACKALLOC as an identifier for a local * [tests] Set compiler profile to debug tests Co-authored-by: cpyrgas <chris@xsharp.eu>
Confirmed fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following code (taken from real user code) reports 2 warnings:
bu there's no ambiguity, the child method defines the parameter with the same type that is passed to it, so this is the one that should laways be picked. Same code in c# does not report any errors or warnings.
The text was updated successfully, but these errors were encountered: