Style: Trim trailing whitespace and ensure newline at EOF
Found by apply the file_format checks again via #91597.
This commit is contained in:
+1
-1
@@ -2,5 +2,5 @@ using Godot;
|
||||
|
||||
public partial class ClassPartialModifier : Node
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@ using Godot;
|
||||
|
||||
public class {|GD0001:ClassPartialModifier|} : Node
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ using Godot;
|
||||
|
||||
// This works because it inherits from GodotObject.
|
||||
[GlobalClass]
|
||||
public partial class CustomGlobalClass1 : GodotObject
|
||||
public partial class CustomGlobalClass1 : GodotObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ using Godot;
|
||||
|
||||
// This works because it inherits from GodotObject and it doesn't have any generic type parameter.
|
||||
[GlobalClass]
|
||||
public partial class CustomGlobalClass : GodotObject
|
||||
public partial class CustomGlobalClass : GodotObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@ public class MustBeVariantGD0301
|
||||
// This raises a GD0301 diagnostic error: object is not Variant (and Method<T> requires a variant generic type).
|
||||
Method<{|GD0301:object|}>();
|
||||
}
|
||||
|
||||
|
||||
public void MethodCallsOk()
|
||||
{
|
||||
// All these calls are valid because they are Variant types.
|
||||
@@ -75,7 +75,7 @@ public class MustBeVariantGD0301
|
||||
public void Method<[MustBeVariant] T>()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void MustBeVariantClasses()
|
||||
{
|
||||
new ClassWithGenericVariant<bool>();
|
||||
|
||||
Reference in New Issue
Block a user