Details
Description
The compiler generated extension "BeginInvoke" is ambiguous when generated for methods that differ only by return type.
The original testcase follows; a more descriptive testcase is attached as BOO-831.boo.
—
Adding the line "Next tune..." results in BCE0004 in the BeginInvoke line. But problem is really that TimeRemaining should be TimeRemaining()
partial class MainForm:
...
def ShowValues ():
ValuesEdit.Text = \
...
"Tune value: " + Tune.CurrentTuneValue ().ToString () + "\n" + \
"Next tune: " + Tune.TimeRemaining.ToString () + "\n" + \
""
...
private def RunBtnCheckedChanged(sender as object, e as
System.EventArgs):
...
_RunResult = RunThread.BeginInvoke()
...
def RunThread():
Running = true
...
static class Tune:
...
static def TimeRemaining ():
return NextTuneTime - DateTime.Now
Attachments
Issue Links
| This issue relates to: | ||||
| BOO-534 | BeginInvoke overloads are not valid on ms.net 2.0 |
|
|
|
Attached a compact testcase that explains the error.