+++ /dev/null
--// cs0175-2.cs: Use of keyword `base' is not valid in this context
--// Line: 13
--
--class DerivedClass {
-- public DerivedClass() {
-- base = null;
-- }
--}
--
+++ /dev/null
--// cs0175.cs: Use of keyword `base' is not valid in this context
--// Line: 8
--using System.Collections;
--class Collection : CollectionBase
--{
-- public int Add (int x)
-- {
-- return ((IList) base).Add (x);
-- }
--}
--
--
--- /dev/null
--- /dev/null
++// CS1525: Unexpected symbol `)', expecting `.', or `['
++// Line: 10
++
++using System.Collections;
++
++class Collection : CollectionBase
++{
++ public int Add (int x)
++ {
++ return ((IList) base).Add (x);
++ }
++}
++
++
--- /dev/null
--- /dev/null
++// CS1525: Unexpected symbol `=', expecting `.', or `['
++// Line: 8
++
++class DerivedClass
++{
++ public DerivedClass ()
++ {
++ base = null;
++ }
++}
++
--- /dev/null
--- /dev/null
++// CS1644: Feature `named argument' cannot be used because it is not part of the C# 3.0 language specification
++// Line: 13
++// Compiler options: -langversion:3
++
++public class C
++{
++ static void Foo (int i)
++ {
++ }
++
++ public static void Main ()
++ {
++ Foo (i : 3);
++ }
++}
--- /dev/null
--- /dev/null
++// CS1738: Named arguments must appear after the positional arguments
++// Line: 13
++// Compiler options: -langversion:future
++
++using System;
++
++class MyAttribute : Attribute
++{
++ public MyAttribute (string s, int value)
++ {
++ }
++}
++
++[MyAttribute (s : "a", 1)]
++class C
++{
++}
--- /dev/null
--- /dev/null
++// CS1738: Named arguments must appear after the positional arguments
++// Line: 12
++// Compiler options: -langversion:future
++
++class C
++{
++ static void Foo (int a, string s)
++ {
++ }
++
++ public static void Main ()
++ {
++ Foo (a : 1, "out");
++ }
++}
--- /dev/null
--- /dev/null
++// CS0853: An expression tree cannot contain named argument
++// Line: 15
++// Compiler options: -langversion:future
++
++using System;
++using System.Linq.Expressions;
++
++class M
++{
++ static void Named (int i)
++ {
++ }
++
++ public static void Main ()
++ {
++ Expression<Action> e = () => Named (i : 1);
++ }
++}
--- /dev/null
--- /dev/null
++// CS0854: An expression tree cannot contain an invocation which uses optional parameter
++// Line: 15
++// Compiler options: -langversion:future
++
++using System;
++using System.Linq.Expressions;
++
++class M
++{
++ static void Optional (int i, string s = "value")
++ {
++ }
++
++ public static void Main ()
++ {
++ Expression<Action> e = () => Optional (1);
++ }
++}