Open
Description
Version
R3 1.3, installed by NuGet and used in a Godot project.
Issue
The observable extension function OfType
takes two class parameters<T, TResult>
, but the "T" is unnecessary. And the documented operator list shows it should be OfType<TResult>
.
Where
The method is defined in the file ObservableExtensions.cs
.
Activity
jskang-cle commentedon May 16, 2025
You need generic parameter
T
to extend theObservable<T>
. Otherwise the method won't compile.ShenCiao commentedon May 17, 2025
This is the actual code I'm writing, the
SignalAsObservable
gives theT
.jskang-cle commentedon May 19, 2025
Yes, the user doesn't have to specify the generic parameters. However, the method definition needs every generic parameter declared.
You cannot compile something like this,