summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Methods.cs
blob: 1da9db82045baba20ddc1b6a1dab504cacfc21f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Godot;

public partial class Methods : GodotObject
{
    private void MethodWithOverload()
    {
    }

    private void MethodWithOverload(int a)
    {
    }

    private void MethodWithOverload(int a, int b)
    {
    }

    // Should be ignored. The previous one is picked.
    private void MethodWithOverload(float a, float b)
    {
    }

    // Generic methods should be ignored.
    private void GenericMethod<T>(T t)
    {
    }
}