it is a compile-time error for a single elementtype constant to appear more than once in a target annotation. for example, the following meta-annotation is illegal.
对于一个元素类型常量出现多余一个的目标注释是编译错误的。例如下面的例子是不合法的。
in that case, you「ll get a somewhat misleading compile-time error that states that you」ve denoted a method where a class was expected.
如果是那样的话,你将得到一些令人费解的编译时错误,这个错误说你已经在类中表示了这个方法。
x = 2; # use of $x here is a compile-time error as usual
$x =2; #这里使用$x通常引起编译时错误
listing 2 shows a piece of code that results in a compile-time error because the copy constructor is private.
清单2显示了产生编译时错误的代码部分,因为该拷贝构造函数是私有的。
it is a compile-time error to attempt to use a type member of a parameterized type as a raw type.
试图把一个参数化类型的类型成员作为一个原始类型,将会产生一个编译时错误。
it is a compile-time error to pass actual type parameters to a non-static type member of a raw type that is not inherited from its superclasses or superinterfaces.
给没有从其超类或者超接口继承的原始类型的非静态类型成员传递实际类型参数会导致编译时错误。
if all attempts yield empty sets of candidate methods, a compile-time error occurs.
如果所有的努力都只产生空的候选集,则发生编译期错误。
if no candidate set is found in any enclosing namespace declaration or compilation unit, a compile-time error occurs.
如果没有发现任何候选集合则产生编译错误。
omitting the cast results in compile-time error cs0266.
省略此强制转换将导致编译时错误cs0266。
it is a compile-time error to reference a private member outside the class or the struct in which it is declared.
在定义私有成员的类或结构外引用它会导致编译时错误。
in fast mode, a compile-time error will be generated if you attempt to assign a value to a read-only identifier.
在快速模式中,如果尝试为只读标识符赋值,将生成编译时错误。
if a specified predicate is not valid for the elements in the data source, a compile-time error will result.
如果指定的谓词对于数据源中的元素无效,则会发生编译时错误。