Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdheepak/testinlineerroromissionmwe
https://github.com/kdheepak/testinlineerroromissionmwe
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kdheepak/testinlineerroromissionmwe
- Owner: kdheepak
- Created: 2023-02-14T02:13:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T14:25:17.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T16:51:43.197Z (2 months ago)
- Language: Julia
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TestInlineErrorOmissionMWE
`main.jl`
```julia
# src/main.jl
default_value() = throw("oh no")main1() = foo(; kwarg_not_used=1)
main2() = foo()
````foo.jl`
```julia
# src/foo.jl
foo(; x1=default_value()) = nothing
```Stacktrace:
```julia
$ julia --project -e 'using TestInlineErrorOmissionMWE; TestInlineErrorOmissionMWE.main1()'
ERROR: "oh no"
Stacktrace:
[1] default_value()
@ TestInlineErrorOmissionMWE C:\Users\USERNAME\gitrepos\TestInlineErrorOmissionMWE\src\main.jl:2
[2] main1()
@ TestInlineErrorOmissionMWE C:\Users\USERNAME\gitrepos\TestInlineErrorOmissionMWE\src\main.jl:4
[3] top-level scope
@ none:1$ julia --project -e 'using TestInlineErrorOmissionMWE; TestInlineErrorOmissionMWE.main2()'
ERROR: "oh no"
Stacktrace:
[1] default_value()
@ TestInlineErrorOmissionMWE C:\Users\USERNAME\gitrepos\TestInlineErrorOmissionMWE\src\main.jl:2
[2] foo()
@ TestInlineErrorOmissionMWE C:\Users\USERNAME\gitrepos\TestInlineErrorOmissionMWE\src\foo.jl:1
[3] main2()
@ TestInlineErrorOmissionMWE C:\Users\USERNAME\gitrepos\TestInlineErrorOmissionMWE\src\main.jl:6
[4] top-level scope
@ none:1
```