Daniel Grunwald
cc37a7179d
TypeSystemAstBuilder: do not specify accessibility on accessors unless necessary.
...
Ported some SD4 unit tests to NR5.
13 years ago
Mike Krüger
f7fb29804d
Implemented better solution for the array initializer workaround hack.
13 years ago
Mike Krüger
7a69c6544b
Fixed Issue #38 : Parser Regression in ObjectCreate initialization
13 years ago
Daniel Grunwald
ab024b9ddc
Fix icsharpcode/NRefactory#28 : Identity of lambda parameters
...
Revert change regarding TypeDeclaration.ClassType; using derived nested classes / factory methods is inconsistent API with all other AST nodes.
If we want to save that bit of memory, we could store ClassType in the flags instead (there's about 20 bits free), although I think it won't matter since TypeDeclaration is a relatively rare node.
14 years ago
Daniel Grunwald
e5217c2c13
Fixed bug in 'BetterConversion' implementation - converting to Func<> delegates is better than converting to Action<> delegates.
14 years ago
Daniel Grunwald
77ea4dae30
Report more types of invalid equality comparisons as errors.
...
Mark an anonymous function conversion as invalid if there are compiler errors in the implicitly typed lambda.
14 years ago
Daniel Grunwald
67d19127f5
Fixed bug in reachability analysis when lambda/anonymous method contains a condition or switch statement.
14 years ago
Daniel Grunwald
1a7ca154b4
Allow conversion of anonymous method with unreachable endpoint to Func<T>.
14 years ago
Daniel Grunwald
0f2b0c380e
Fixed lambda type inference in delegate creation expressions. ("new Func<int, int>(a => a)")
14 years ago
Daniel Grunwald
79b8b00d29
Fix bug in output type inference for explicitly typed lambdas.
14 years ago
Daniel Grunwald
b803d850f7
Do not report invalid conversion from int to void for this code:
...
void Run(Action<string> a) { }
int M() {
Run(x => $M()$);
}
14 years ago
Daniel Grunwald
4d4f1f42b7
Fixed various resolver bugs.
14 years ago
Daniel Grunwald
f631199013
Type system refactoring: split unresolved/resolved type systems.
14 years ago
Daniel Grunwald
b7fcc55308
Re-enable resolver unit tests that failed due to the parser returning incorrect positions.
...
Fixed a bug that caused array initializers to fail to resolve when the parent variable initializer was not being resolved.
14 years ago
Daniel Grunwald
b7a17c206e
Adjust unit tests to InvocationResolveResult changes.
14 years ago
Daniel Grunwald
e37dc4b6c7
Move ResolveResults to NR.Semantics
14 years ago
Daniel Grunwald
9d0e6ae0f8
Resolver: added support for collection initializers and nested object initializers.
14 years ago
Daniel Grunwald
a5c93a38e4
Adjust resolver to object initializer AST changes.
14 years ago
Daniel Grunwald
7a2c59ae4a
Add GetMemberOptions.
14 years ago
Daniel Grunwald
f79b0a77f3
Resolver: array create expressions
14 years ago
Daniel Grunwald
c9c204439f
Fix type inference and overload resolution when a class type parameter gets substituted by a method type parameter.
14 years ago
Daniel Grunwald
5c585e110b
Apply license header to unit tests.
...
Add parser unit tests for ObjectCreateExpression.
14 years ago
Daniel Grunwald
b52a348373
More work on lambda expressions.
14 years ago
Daniel Grunwald
878dbbff0b
Fixed some issues in resolver; enable resolver unit tests.
14 years ago
Daniel Grunwald
f30490c2a5
Add some parser unit tests.
15 years ago
Daniel Grunwald
9e42e6b6f4
Enable some unit tests that work with the type reference hack.
15 years ago
Daniel Grunwald
eaee5bf5ee
Use static instances on KnownTypeReference for the built-in C# types.
15 years ago
Daniel Grunwald
a665e39680
Add lots of resolver unit tests.
15 years ago