mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-24 13:34:52 +00:00
17 lines
457 B
Rust
17 lines
457 B
Rust
use erg_common::error::{ErrorCore, ErrorKind, Location};
|
|
use erg_common::io::Input;
|
|
use erg_compiler::error::CompileWarning;
|
|
|
|
pub(crate) fn too_many_params(input: Input, caused_by: String, loc: Location) -> CompileWarning {
|
|
CompileWarning::new(
|
|
ErrorCore::new(
|
|
vec![],
|
|
"too many parameters".to_string(),
|
|
0,
|
|
ErrorKind::Warning,
|
|
loc,
|
|
),
|
|
input,
|
|
caused_by,
|
|
)
|
|
}
|