8 Matching Annotations
- Nov 2022
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
I would like to understand this design then. In my experience it has only served to limit what I can achieve, and gained me no additional benefit.
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
Is there an OS agnostic way of doing this? I like the script command on macOS because you don't have to wrap the command in quotes. The script runs and sends output to the tty which is duplicated in the supplied file, but I can't seem to get the linux version to behave the same way... I'm probably doing something wrong. So what's the equivalent linux script command for this on macOS: script -q -t 0 tmp.out perl -e 'print "Test\n"' Test cat tmp.out Test
-
- Mar 2021
-
askubuntu.com askubuntu.com
-
github.com github.com
-
So I was wondering: do you have any examples of broken source maps caused by this approach? I don't use source maps so it'd be nice to have something to start from.
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
- Nov 2020
-
stackoverflow.com stackoverflow.com
-
github.com github.com
-
Is there some documentation yet, or maybe tests with some code examples?
-
- Oct 2019
-
github.com github.com
-
function fn1<T extends string>(x: T): T { return "hello world!"; } How to resolve this error? Change to return "hello world" as T?
I wish someone would actually answer this question and recommend a general solution to this class of error.
It seems like "forcing" the type to be T with
return "hello world" as T
only masks the issue. It's still be possible to get type mismatches, as demonstrated in this example:So maybe we just can't safely return specific instances of T from functions like this...
-