Skip to content

Can not compile Nested Variant with Generics from Parent #54

@Gallimathias

Description

@Gallimathias

I have following Pattern

[Variant]
public class Parent<TInput, TOutput, TValue, TExternalValue>
{
    static partial void VariantOf(
            Notification<string> notification,
            Parent<TInput, TOutput, TValue, TExternalValue>.ChildA a,
            Parent<TInput, TOutput, TValue, TExternalValue>.ChildB b
        );

    [Variant]
    public partial class ChildA
    {
        static partial void VariantOf(
            string name,
            TInput input,
            TExternalValue value
        );
    }

    [Variant]
    public partial class ChildB
    {
        static partial void VariantOf(
            TOutput output,
            TValue value,
            Action action
        );
    }
}

I get now a build issue that ChildAEx can not Build because it don't know about TExternalValue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions