[Mono-bugs] [Bug 558305] Can't call empty partial methods
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 26 15:16:50 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=558305
http://bugzilla.novell.com/show_bug.cgi?id=558305#c3
--- Comment #3 from Dan Shechter <dans at houmus.org> 2009-11-26 20:16:46 UTC ---
Sorry...
The correct error is:
BookCatalog.cs(1708,9): error CS1502: The best overloaded method match for
`BookCatalogDtoExtensions.BeforeCopyAuthor(Author,AuthorDto)' has some invalid
arguments
BookCatalog.cs(1692,27): (Location of the symbol related to previous error)
BookCatalog.cs(1708,9): error CS1503: Argument `#1' cannot convert `AuthorDto'
expression to type `Author'
Line 1708 is:
private static void CopyAuthor(AuthorDto dto, Author entity)
{
BeforeCopyAuthor(dto, entity);
CopyBookCatalogDtoBase(dto, entity);
entity.Name = dto.Name;
entity.Code = dto.Code;
AfterCopyAuthor(dto, entity);
}
Line 1692 is:
static partial void BeforeCopyAuthor(Author entity, AuthorDto dto);
which seems like the compiler is complaining justly..
Except that line 1694 is:
static partial void BeforeCopyAuthor(AuthorDto dto, Author entity);
Which makes this whole error very wierd.
The problem is that if I copy the project "aside" to /tmp, and retry compiling
it... I'm not getting the Error!
Which makes this indeed very hard to reproduce.
I hope this can somehow help you see the issue.
I'll go on trying to reproduce this...
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list