-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
228 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using MauiReactor.TestApp.Services; | ||
using Microsoft.Maui; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MauiReactor.TestApp.Pages; | ||
|
||
abstract partial class BaseComponent2<TState> : Component<TState> where TState : class, new() | ||
{ | ||
[Inject] protected readonly IncrementService? _injectedService; | ||
[Prop] protected MauiControls.Shell? shellRef; | ||
} | ||
|
||
abstract partial class BaseComponent2<TState, TProps> : Component<TState, TProps> where TState : class, new() | ||
where TProps : class, new() | ||
{ | ||
[Inject] protected readonly IncrementService? _injectedService; | ||
[Prop] protected MauiControls.Shell? shellRef; | ||
} | ||
|
||
class TestBug218_1 : BaseComponent2<TestBug218_1.MyState> | ||
{ | ||
public class MyState | ||
{ } | ||
|
||
public override VisualNode Render() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
class TestBug218_2 : BaseComponent2<TestBug218_2.MyState, TestBug218_2.MyProps> | ||
{ | ||
public class MyState | ||
{ } | ||
public class MyProps | ||
{ } | ||
|
||
public override VisualNode Render() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters